package com.yangxk.kadmin.web.common;

/**
 * 系统常量类
 * @author yangxk
 * @date 2018/9/13 14:04
 */
public class Const {
    public static final String SESSION_USER_KEY = "session_user";
    public static final String SESSION_USER_AUTH_KEY = "user_auth_key";
    public static final String SESSION_USER_DATA_SCOPE_KEY = "user_data_scope";
    public static final String CONTEXT_AUTH_KEY = "context_auth_key";

    public static final Long TREE_ROOT_PARENTID = 0L;

//    public interface SYS_GENDER {
//        String MALE = "0";   // 男
//        String FEMALE = "1"; // 女
//    }

    /**
     * 状态
     */
    public interface SYS_STATUS {
        String ENABLE = "0";  // 启用
        String DISABLE = "1"; // 禁用
    }

    /**
     * 删除标记
     */
    public interface  SYS_DEL_FLAG {
        int NORMAL = 0; // 正常
        int DEL = 1;    // 删除
    }

    /**
     * 权限类型
     */
    public interface AUTH_TYPE {
        String MENU = "0"; // 菜单
        String BTN = "1";  // 按钮
    }

    /**
     * 生成日志状态
     */
    public interface GEN_STATE {
        String NORMAL = "0";
        String DEL = "1";
    }

    /**
     * 生成日志类型
     */
    public interface GEN_TYPE {
        String GEN = "0";
        String UPDATE = "1";
    }
}
